<include file="public@header"/>
</head>
<body>
<div class="wrap js-check-wrap">
    <ul class="nav nav-tabs">
        <li <if condition='$type eq "icon"'>class="active"</if>><a href="{:url('index')}">桌面图标</a></li>
        <li <if condition='$type eq "logo"'>class="active"</if>><a href="{:url('index','type=logo')}">LOGO列表</a></li>
        <li <if condition='$type eq "loading"'>class="active"</if>><a href="{:url('index','type=loading')}">LOADING列表</a></li>
        <li <if condition='$type eq "theme"'>class="active"</if>><a href="{:url('index','type=theme')}">皮肤列表</a></li>
        <li><a href="{:url('add')}">添加资源</a></li>
    </ul>
    <php>$status=['不可用', '可用'];</php>
    <table class="table table-hover table-bordered margin-top-20">
        <thead>
        <tr>
            <th width="50">ID</th>
            <th>用户</th>
            <th>文件大小</th>
            <th>文件名</th>
            <th>价格</th>
            <th>上传时间</th>
            <th>状态</th>
            <th width="160">{:lang('ACTIONS')}</th>
        </tr>
        </thead>
        <tbody>
        <foreach name="assets" item="vo">
            <tr>
                <td>{$vo.id}</td>
                <td><img src="{$vo.file_path}"></td>
                <td>{$vo.file_size/1024|round}KB
                </td>
                <td>{$vo.filename}</td>
                <td>{$vo.price}</td>
                <td>{$vo.create_dt}</td>
                <td>{$status[$vo['enable_i']]}</td>
                <td>
                    <a href="{:url('del',array('id'=>$vo['id']))}" data-refresh="false" class="js-ajax-delete">{:lang('DELETE')}</a>
                    <a href="{:url('edit',array('id'=>$vo['id']))}" data-refresh="false" class="js-dialog">{:lang('EDIT')}</a>
                </td>
            </tr>
        </foreach>
        </tbody>
    </table>

    <div class="pagination">{$page|default=''}</div>

</div>
<script src="__STATIC__/js/admin.js"></script>
</body>
</html>
